<template>
  <div id="orcode">
    <div class="main">
      <Row>
        <Col span="24" class="orcode">
        <!-- 二维码图片 -->
          <img :src="ORcode.img" class="img" />
        </Col>
      </Row>
      <Row>
        <Col span="24" class="line">
        <!-- 联系文字 -->
          <p v-html="ORcode.line"></p>
        </Col>
      </Row>
    </div>
  </div>
</template>

<script>
//导入iview-ui组件
import { Row, Col } from "view-design";

export default {
  name: "orcode",
  //组件注册
  components: {
    Row,
    Col
  },
  //传入属性
  props:['ORcode'],
  data() {
    return {
      
    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>

<style scoped>
/* 局部UI样式修改 */
.orcode {
  text-align: center;
  margin: 20px auto 10px;
}
.img {
  width: 240px;
  height: 240px;
}
.line {
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  margin-bottom: 100px;
}
</style>